<!--header-->
<div class="horiz_m_bg"> 
 <?php
                    $usertype = isset($_SESSION['usertype'])?$_SESSION['usertype']:'';
                    if($usertype == 1){
                        $account = W_ROOT."/admin/";
                        }else if($usertype == 2){
                        $account = W_ROOT."/company/dashboard/";	
                        }
	else if($usertype == 3){
                        $account = W_ROOT."/buyer/profile.php";	
                        }else{
                        $account = W_ROOT."/login.php";
                    }
                    ?> 
<div class="row">
    <div class="nine columns">
        <!--start <div class="row1">-->
    <div class="two columns hide-for-small">
	   <a class="logo" href="<?php echo W_ROOT;?>/"><img src="<?php echo W_ROOT;?>/images/Logo200.png" border="0"/></a>
    </div>
    <?php
		  require_once $s_root.'/company/top_sell_menu.php';
    ?> 
    </div>
    
    
    <div class="three columns">
        <div style="border: 1px solid #ccc; margin:11px 0 10px 10px;" class="radius2 bo_ddd sad_aaa">
        <div class="ddsmoothmenu" id="smoothmenu1">
            <ul class="myaccount">
                <li>
                    <a href="<?php echo $account;?>"><i class="icon-user"></i> <!--My KHM--><?php echo $lang['MYKHM'];?></a>
                </li>
                <li>
                    <a href="<?php echo W_ROOT;?>/company/action/?p=email/index"><!--Messaging--><?php echo $lang['MESSAGING'];?></a>
                </li>
                <li>
                <a href="<?php
                        									$usertype = isset($_SESSION['usertype'])?$_SESSION['usertype']:'';
                        									if($usertype == 1){
                        										$link = W_ROOT."/admin/?logout";
                        										}else if($usertype == 2 ||$usertype =3){
                        										$link = W_ROOT."/?do=logout";	
                        										}
                        										else
                        										{
                        											if($usertype == 1){
                        												$link = W_ROOT."/admin";	
                        											} 
                        											else 
                        											{
                        										$link = W_ROOT."/login.php";
                        											}
                        									}
                        									?><?php echo $link;?>" class="logout">
                                                        	<?php
                        									$usertype = isset($_SESSION['usertype'])?$_SESSION['usertype']:'';									
                        											if($usertype == 1||$usertype == 2||$usertype == 3){
                        												echo $lang['SIGNOUT'];
                        											}
                        											 else
                        											{
                        												echo 'Log in';
                        											}
                        									?>
               	    </a>
                </li>
            </ul>
        </div>               
                <!-- end my card -->
            
        <div class="clear"></div>               
        </div>
        
    </div>
</div>    
    
</div>
<!--end header-->